package com.jiawa.train.batch.controller;

import com.jiawa.train.batch.feign.BusinessFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BatchTestController {

    @Autowired
    private BusinessFeign businessFeign;

    @GetMapping("/batch/hello")
    public String test() {
        String hello = businessFeign.hello();
        System.out.println(hello);
        return hello+"Hello world Batch";
    }


}
